package com.hyt.it.ogt.pj.data.service.pj.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hyt.core.base.BaseServiceImpl;
import com.hyt.it.ogt.pj.data.mapper.pj.PieceMapper;
import com.hyt.it.ogt.pj.data.model.entity.pj.Piece;
import com.hyt.it.ogt.pj.data.service.pj.IPieceService;

import lombok.extern.slf4j.Slf4j;

/**
 * <p>
 * 评卷块表 服务实现类
 * </p>
 *
 * @author qiaozj
 * @since 2020-07-09
 */
@Slf4j
@Service
public class PieceServiceImpl extends BaseServiceImpl<PieceMapper, Piece> implements IPieceService {

    @Autowired
    private PieceMapper pieceMapper;

    @Override
    public List<Piece> selectBySubject(String subjectId) {
        return pieceMapper.selectBySubject(subjectId);
    }
    
    @Override
	public List<Piece> selectByProjectIdSubjectId(String projectId, String subjectId) {
         return pieceMapper.selectByProjectIdSubjectId(projectId, subjectId);
	}
    

    @Override
    public Piece selectPaperPiece(String projectId, String subjectId, String paperId) {
        return pieceMapper.selectPaperPiece(projectId, subjectId, paperId);
    }

    
    @Override
    public void updateFinishStatus(String projectId, String subjectId, String pieceCode, Boolean status) {
        pieceMapper.updateFinishStatus(projectId, subjectId, pieceCode, status);
    }


	


	

	
}
